package com.usian.apis.wemedia;

import com.usian.model.common.dtos.ResponseResult;
import com.usian.model.media.dtos.WmMaterialDto;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.multipart.MultipartFile;

public interface WmMaterialControllerApi {
    @PostMapping("/upload_picture")
    ResponseResult fileUpload(MultipartFile multipartFile);

    @PostMapping("/list")
    ResponseResult findList(@RequestBody WmMaterialDto dto);

    @GetMapping("/del_picture/{id}")
    ResponseResult delById(@PathVariable Integer id);

    @GetMapping("/collect/{id}")
    ResponseResult collect(@PathVariable Integer id);

    @GetMapping("/cancel_collect/{id}")
    ResponseResult cancelCollect(@PathVariable Integer id);
}
